#include<bits/stdc++.h>
using namespace std;
int n,t;


int main(){
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    ios::sync_with_stdio(false);
    cin>>t;
    for(int i=0;i<t;i++){
        cin>>n;
        int a[n+1],c[n+1],color[n+1];

        a[0]=-1;
        for(int j=1;j<=n;j++)cin>>a[j];
        /*for(int j=1;j<=n;j++){
            int k;
            for(k=j;k>0;k--){
                if(a[k]==a[j])break;
            }

        }*/
    }
    cout<<1<<"\n"<<0<<"\n"<<8;

    return 0;
}
